home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Video
/
World of Video.iso
/
gfxprograms
/
3dprograms
/
rayshade-4.0
/
fixes
/
fix011
< prev
next >
Wrap
Internet Message Format
|
1995-02-13
|
3KB
From theseas!fs.Princeton.EDU!cek Thu, 17 Jun 93 01:37:06 EET
Received: by kriton.UUCP (V1.16/Amiga)
id AA00000; Thu, 17 Jun 93 01:37:06 EET
Received: by theseas.ntua.gr with UUCP; Tue, 15 Jun 93 11:32:20 +0300
Received: from mcsun.EU.net by pythia.ics.forth.gr via ITEnet with SMTP;
id AA04278 (5.65c/FORTH-ICS-3.0-MHS-7.0); Tue, 15 Jun 1993 10:37:29 +0300
Received: by mcsun.EU.net via EUnet
id AA03505 (5.65b/CWI-2.222); Tue, 15 Jun 1993 09:37:24 +0200
Received: from Princeton.EDU by relay1.UU.NET with SMTP
(5.61/UUNET-internet-primary) id AA08190; Tue, 15 Jun 93 03:36:14 -0400
Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.96/princeton)
id AA13443; Tue, 15 Jun 93 03:32:39 -0400
Received: by fs.Princeton.EDU (4.1/1.105)
id AA05293; Tue, 15 Jun 93 03:32:37 EDT
Received: from ibiza.karlsruhe.gmd.de by fs.Princeton.EDU (4.1/1.105)
id AA05196; Tue, 15 Jun 93 03:30:50 EDT
Date: Tue, 15 Jun 93 09:30:21 +0200
Message-Id: <9306150730.AA01705@compare>
In-Reply-To: Stu Donaldson's message of Mon, 14 Jun 1993 17:32:53 -0700 (PDT) <m0o5OxK-0003WGC@hindmost.mav.com>
X-Organization: GMD Forschungsstelle an der Universitaet Karlsruhe
Vincenz-Priessnitz-Strasse 1
W-7500 Karlsruhe 1
X-Fax: +49-721-6622968
Errors-To: Princeton.EDU!cek
Remailed-Date: Tue Jun 15 03:31:49 EDT 1993
From: Thomas Mueller AKA Howie <karlsruhe.gmd.de!mueller>
To: cs.Princeton.EDU!rayshade-users
Subject: lex.l conflict with symtab.c 4.06.enh2
Hi!
[...]
|> Well, since 'linear' is a builtin function in symtab.c, it will
|> be parsed into a token tLINEAR, not a tSTRING. This generates
|> a parse error. I fixed it by changing linear in the file builtin
|> table in symtab.c to be 'linearf', however I'm sure this isn't
|> the real fix. I suspect you could fix it by making tLINEAR acceptable
|> as a symtab as well as a tSTRING, but that starts to look dirty.
|>
|> I wanted to point this out, so the "real maintainer" of rayshade
|> could determine a suitable fix that is consistent with the rest
|> of the code and apply it.
[...]
Hmmm, I'm not the ``real maintainer'' of rayshade, but since I'm in compiler
business, I know a bit :-) about parsers. The simplest patch is to fix the
rule for Symtabent in yacc.y to:
Symtabent : tSTRING
{$$ = SymtabBuiltinFind($1);}
| tLINEAR
{$$ = SymtabBuiltinFind(strsave("linear"));}
;
Then coin.ray and gradient.ray both work fine.
Have fun
Howie
--
%! mueller@karlsruhe.gmd.de AKA Howie _ _
.2/r{rlineto}def setlinewidth 120 dup scale 1 1 0 0 0 1 1 0 1 0 0 0 0 %|_|_|_|
1 0 0 1 1 1 0 0(egijkmo){dup 3 and exch 4 idiv 3 and moveto setrgbcolor%|_|_|_|
1 0 r -1 0 0 1 r r closepath save fill restore 0 setgray stroke}forall %|_| |_|
----------
Administrivia: rayshade-request@cs.princeton.edu
Mailing list: rayshade-users@cs.princeton.edu